Incremental Attribute Evaluation of LR - attributedgrammars Using Space - E cient Data

نویسندگان

  • Hisashi Nakai
  • Masataka Sassa
  • Hiroaki Kameyama
  • Ikuo Nakata
چکیده

Incremental attribute evaluation of one-pass attribute grammars (AGs) has not yet been fully investigated. However, considering the lightness of one-pass AGs, combining incremental evaluation and parsing in one-pass AGs may bring about a time-and space-eecient language processor. In this paper, an incremental attribute evaluation method based on LR-attributed grammar, a class of one-pass attribute grammar, is described. First we propose a method of incremental attribute evaluation using a parse tree. Then we present a space-optimized incremental attribute evaluation method using a more compact data structure whose number of nodes is the same as that of tokens. We also describe an optimization to avoid unnecessary re-evaluation, for example, reusing a subtree. Lastly, we describe the implementation of an incremental attribute evaluator generator by augmenting Rie (an attribute evaluator generator based on ECLR-attributed grammar) and show the results of experiments of executing the incremental attribute evaluators generated. As a result of non-optimized incremental attribute evaluation, the execution time for the re-evaluation is from 40% to 80% of the initial evaluation. In the case of optimized incremental attribute evaluation, the time for re-evaluation is from 5% to 15% of the initial evaluation. The results demonstrate the eeciency of incremental re-evaluation of one-pass attribute grammars.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Strictification of Computations on Trees

An attribute grammars describes a computation over a recursive data structure (syntax tree). The corresponding evaluator can be directly encoded as a set of lazy evaluated functions. In this paper we show how this set may be converted into a larger set of strict functions and a collection of new data types. We call this process, which is based on a global data ow analysis, stricti cation. The r...

متن کامل

GLR-parsing of word lattices using a beam search method

The process of understanding spoken language re quires the e cient processing of ambiguities that arise by the nature of speech This paper presents an ap proach that allows the e cient incremental integra tion of speech recognition and language understand ing using Tomita s generalized LR parsing algorithm For this purpose the GLR lattice parsing algorithm is revised so that an agenda mechanism...

متن کامل

The Exponentiated Lomax – Rayleigh (E-LR) Distribution, Properties and Applications

In this paper a new four-parameter lifetime distribution named “the exponentiated Lomax – Rayleigh (E-LR) distribution” has been suggested that it has an increasing hazard rate for modeling lifetime data. The Lomax distribution has applications in economics, actuarial modelling, reliability modeling, lifetime and queuing problems and biological sciences. In this paper Firstly, the mathematical ...

متن کامل

Electronic Commerce Data Mining using Rough Set and Logistic Regression

Electronic commerce (E-commerce) has gradually been the mainstream of business. There may be some unpredictable but frequent problems such as delay in shipment, shipping errors caused by E-commerce participants’ low efficiency. There problems will have negative impact on the business of participants eventually. Correct evaluation of the efficiency of E-commerce is an important way to improve op...

متن کامل

Hmm Continuous Speech Recognition Using Predictive Lr Parsing

This paper proposes a new continuous speech recognition method using an e cient parsing mechanism, an LR parser, driving HMM modules directly without any intervening structures such as a phoneme lattice. Accurate and e cient speech parsing is achieved by combining HMM and LR parsing. This method is tested in Japanese phrase recognition experiments. Two grammars are prepared, a general Japanese ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000